package ru.yasheritsa.one;

import com.sun.jersey.spi.container.servlet.ServletContainer;

import javax.servlet.ServletException;

/**
 * Created by lizard on 07.11.2014.
 */
public class OneServlet extends ServletContainer {
    @Override
    public void init() throws ServletException {
        super.init();
        HelloRunner hr = new HelloRunner();
        hr.start();
        int a = 4;
    }

    class HelloRunner extends Thread{
        @Override
        public void run() {
            while(true) {
                System.out.println("asdasd");
                try {
                    Thread.currentThread().sleep(1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
